// main.js

// import createRequest from '@/utils/request'
import createRequest from '@/utils/r'

// 登录请求
export function loginRequest(data) {
	return createRequest({
		url: '/login',
		method: 'POST',
		data,
		needLogin: false // 注意，这里要为false
	})
}


export function getScoreListRequest(data) {
	return createRequest({
		url: '/scores',
		data,
	})
}

export function getRawScoreListRequest(data) {
	return createRequest({
		url: '/raw-scores',
		data,
	})
}

export function getCourseListRequest(data) {
	return createRequest({
		url: '/courses',
		data,
	})
}